<!DOCTYPE html>
<html>
<head>
    <title>模块分类管理</title>
    <include file='public/head'>
        <style>
            table th, table td{text-align: center;}
        </style>
</head>
<body>
    <div class="wrap js-check-wrap">
		<form class="margin-top-20">
			<div class="form-group">
				<label for="">分类名称<label>
				<input type="hidden" name="id" value="{$info.id|default=0}">
				<input type="text" class="form-control" name="name" id="category-name" value="{$info.name|default=''}" placeholder="填写分类名称">
			</div>
		</form>
    </div>
<include file='public/scripts'>
<script src="__STATIC__/js/layer/layer.js"></script>
<script src="__STATIC__/js/custom/custom.js"></script>
<script>
var getData = function(){
	let  data = {};
	let id = $('input[name=id]').val();
	let name = $('input[name=name]').val();
	if( name.length == 0 ){
		return false;
	}else{
		data['id'] = id;
		data['name'] = name;
	}
	return data;
}
</script>
</body>
</html>